import React, { Suspense } from "react";

import { BrowserRouter, useRoutes } from "react-router-dom";
import { ROUTER_lIST } from "./routes";

const Router = () => {
  const App = () => useRoutes(ROUTER_lIST);
  return (
    <BrowserRouter>
      <Suspense>
        <App></App>
      </Suspense>
    </BrowserRouter>
  );
};

export default Router;
